package com.koo.modules.base.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.koo.modules.base.entity.BaseDictEntity;
import com.koo.modules.base.entity.vo.DictVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author charlin
 * @email 136137465@qq.com
 * @date 2022-06-02 14:50:08
 */
@Mapper
public interface BaseDictDao extends BaseMapper<BaseDictEntity> {

    /**
     * 根据code获得字典
     * @param code
     * @return
     */
    List<DictVo> getDict(@Param("code") String code);
}
